package net.thumbtack.onepm.tests;

import org.junit.*;
import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.Select;

public class LoginSignup extends TestBase{




    @Test

        public void SignUp() throws Exception {
            int FirstInd=1;
            int SecondInd=20;


           // for (int i=FirstInd; i<=SecondInd; i++)

        TestBase.driver.get(TestBase.baseUrl + "/signup");
        TestBase.driver.findElement(By.id("email")).clear();
        TestBase.driver.findElement(By.id("email")).sendKeys(FirstName +"@"+ EmailCompany);
        fillFormSignUp(new UserData(FirstName, lastName, position, letterCity));
       // new Select(driver.findElement(By.id("sex"))).selectByVisibleText("male");

        TestBase.driver.findElement(By.id("agreement")).click();
        TestBase.driver.findElement(By.id("submit")).click();
        Thread.sleep(500);
        driver.get(baseUrl + "/logout");
   LoginAdmin c = new LoginAdmin();
   c.LogAdmin();
              //   WebElement account_select= driver.findElement(By.cssSelector("span.userpic.small"));
            //    Thread.sleep(500);
             //   new Actions(driver).moveToElement(account_select).perform();
             //  driver.findElement(By.id("logout")).click();


        }


}
